import request from '@/utils/request'

// 查询军转干_基本信息列表
export function listToCadre_retirefm(query) {
  return request({
    url: '/manager/retirefm/list',
    method: 'get',
    params: query
  })
}

// 查询军转干_基本信息详细
export function getToCadre_retirefm(id) {
  return request({
    url: '/manager/retirefm/' + id,
    method: 'get'
  })
}

// 新增军转干_基本信息
export function addToCadre_retirefm(data) {
  return request({
    url: '/manager/retirefm',
    method: 'post',
    data: data
  })
}

// 修改军转干_基本信息
export function updateToCadre_retirefm(data) {
  return request({
    url: '/manager/retirefm',
    method: 'put',
    data: data
  })
}

// 删除军转干_基本信息
export function delToCadre_retirefm(id) {
  return request({
    url: '/manager/retirefm/' + id,
    method: 'delete'
  })
}

// 导出军转干_基本信息
export function exportToCadre_retirefm(query) {
  return request({
    url: '/manager/retirefm/export',
    method: 'get',
    params: query
  })
}

// 省市区
export function cityTree(){
  return request({
    url: '/provinceToDistrict/getCityTree',
    method: 'get'
  })
}

// 职级树
export function rankTree(){
  return request({
    url: '/rank/getRankTree',
    method: 'get'
  })
}